package com.whfc.emp.enums;

public enum RecModeType {
    swiping_face(1, "刷脸"),
    swiping_card(2, "刷卡"),
    double_identification(3, "双重认证"),
    man_card_compare(4, "人证比对"),
    unknown(0,"未知")
    ;

    private Integer value;

    private String desc;

    RecModeType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static RecModeType parseValue(Integer value) {
        switch (value) {
            case 1:
                return swiping_face;
            case 2:
                return swiping_card;
            case 3:
                return double_identification;
            case 4:
                return man_card_compare;
            default:
                return unknown;
        }
    }
}
